package game.entity.kickstones;

import game.Game;
import game.GameConstants;
import game.entity.Ball;

import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;

public class ColorStone extends KickStone {

	private String color;

	public ColorStone(Game gameContainer, float xPos, float yPos, Image img, int moveDirection, String color) {
		super(gameContainer, xPos, yPos, img, moveDirection);
		this.color = color;
	}

	public ColorStone(Game gameContainer, float xPos, float yPos, float width, float height, int moveDirection, String color) {
		super(gameContainer, xPos, yPos, width, height, moveDirection, GameConstants.DOUBLESTONE_STANDARDCOLOR);
		this.color = color;
	}

	public ColorStone(Game gameContainer, float xPos, float yPos, int moveDirection, String color) {
		super(gameContainer, xPos, yPos, moveDirection, GameConstants.DOUBLESTONE_STANDARDCOLOR);
		this.color = color;
	}

	public ColorStone(Game gameContainer, float xPos, float yPos, int moveDirection, Image img, String color) {
		super(gameContainer, xPos, yPos, moveDirection, GameConstants.DOUBLESTONE_STANDARDCOLOR);
		this.color = color;
	}

	@Override
	public void afterKick(Ball ball) throws SlickException {
		ball.setColor(color);
	}

}
